<div class="page page-usercenter page-manager">
    <div class="order-header clearfix">
        <a href="javascript:void(0);" ng-click="jump('/usercenter');" class="order-tab-title">用户中心</a>
        <a href="javascript:void(0);" ng-click="jump('/usercenter/manager');" class="order-tab-title selected">业务管理</a>
    </div>
    <div class="basic-info" style='height:auto;padding-bottom:10px;'>
        <div class="avatar" ng-click="jump('/usercenter/profile');">
            <img ng-src="{{userinfo.avatar}}" ng-if="userinfo.avatar">
            <img src="catalog/view/theme/bhz/m/images/default-avarta.png" ng-if="!userinfo.avatar">
        </div>
        <div class="info" ng-click="jump('/usercenter/profile');">
            <div class="username">{{userinfo.fullname}}</div>
        </div>
        <img src="catalog/view/theme/bhz/m/images/space_line.png" class="separate-line">
        <!--转化率图层-->
        <div class="order-status">
            <table>
            <tr>
                <td class="status-item">
                    <a href="javascript:void(0)">
                        <div class="count"><strong>{{userinfo.MG_saleGatherInfo.orderedNowRate}}%</strong></div>
                        <div class="status">本月转化率</div>
                    </a>
                </td>
                <td class="status-item">
                    <a href="javascript:void(0)">
                        <div class="count"><strong>{{userinfo.MG_saleGatherInfo.reOrderedNowRate}}%</strong></div>
                        <div class="status">本月复购率</div>
                    </a>
                </td>
                <td class="status-item">
                    <a href="javascript:void(0)" ng-click="gotoPage('ordersList', 'receiptWithOutPay')">
                        <div class="count"><strong>{{userinfo.MG_saleGatherInfo.amountReceiptWithoutPayed}}</strong></div>
                        <div class="status">已收货未收款</div>
                    </a>
                </td>
            </tr>
            <tr>
                <td colspan='3'>&nbsp;</td>
            </tr>
            <tr>
                <td class="status-item">
                    <a href="javascript:void(0)">
                        <div class="count"><strong>{{userinfo.MG_saleGatherInfo.tPriceNow}}</strong></div>
                        <div class="status">本月销售总额</div>
                    </a>
                </td>
                <td class="status-item">
                    <a href="javascript:void(0)">
                        <div class="count"><strong>{{userinfo.MG_saleGatherInfo.tPriceTargetNow}}</strong></div>
                        <div class="status">本月销售指标</div>
                    </a>
                </td>
                <td class="status-item">
                    <a href="javascript:void(0)">
                        <div class="count"><strong>{{userinfo.MG_saleGatherInfo.tPriceFinishRateNow}}%</strong></div>
                        <div class="status">本月销售额完成率</div>
                    </a>
                </td>
            </tr>
            </table>
        </div>
        <!--转化率图层-->
    </div>

	<!--消息通知-->
	<div class="message-div">
    
    	<ul class="message-ul">
        	<li ng-repeat="(key,m) in messages" ng-if="key<2"><a href="javascript:void(0)" ng-click="jump('/usercenter/message/'+m.send_id,true)">{{m.title|limitTo:8}}<span class="message-date">{{m.date_added}}</span></a></li>
        </ul>
		<div class="no-message" ng-if="messages.length<1">暂时没有收到任何消息</div>
        
    </div>
	<div class="to-message" ng-click="jump('/usercenter/message')"></div>
    <!--消息通知-->

    <!--菜单栏-->
    <div class="menu app-menu">
        <table class="menu-table app-table">
        <tr>
            <td>
                <a href="javascript:void(0)" ng-click="gotoPage('ordersList', 'all')">
                    <img class="menu-icon" src="catalog/view/theme/bhz/m/images/mg_order.png">
                    <span class="menu-text">我的订单</span>
                </a>
            </td>
            <td>
                <a href="javascript:void(0)" ng-click="jump('/usercenter/manager/send')">
                    <img class="menu-icon" src="catalog/view/theme/bhz/m/images/mg_stockout.png">
                    <span class="menu-text">我的送货单</span>
                </a>
            </td>
            <td>
                <a href="javascript:void(0)" ng-click="gotoPage('customerList', 'all')">
                    <img class="menu-icon" src="catalog/view/theme/bhz/m/images/mg_profile.png">
                    <span class="menu-text">我的会员</span>
                </a>
            </td>
        </tr>
		<tr>
            <td>
                <a href="javascript:void(0)" ng-click="gotoPage('reportByArea', 'default')">
                    <img class="menu-icon" src="catalog/view/theme/bhz/m/images/mg_chart.png">
                    <span class="menu-text">业绩分析</span>
                </a>
            </td>
            <td>
                <a href="javascript:void(0)" ng-click="jump('/usercenter/manager/borrow')">
                    <img class="menu-icon" src="catalog/view/theme/bhz/m/images/mg_borrow.png">
                    <span class="menu-text">我的借货单</span>
                </a>
            </td>
            <td>
                <a href="javascript:void(0)" ng-click="jump('usercenter/manager/stockout')">
                    <img class="menu-icon" src="catalog/view/theme/bhz/m/images/mg_out.png">
                    <span class="menu-text">出库管理</span>
                </a>
            </td>
        </tr>
		<tr>
			<td>
                <a href="javascript:void(0)" ng-click="jump('usercenter/manager/stockin')">
                    <img class="menu-icon" src="catalog/view/theme/bhz/m/images/mg_in.png">
                    <span class="menu-text">入库管理</span>
                </a>
            </td>
			<td></td>
			<td></td>
		</tr>
        </table>
    </div>
    <!--菜单栏-->
    <!--日销售统计-->
    <div class="chart-layer" style="width:100%;">
        <div id="myOrderBar" style="width:100%;height:400px;"></div>
    </div>
    <!--日销售统计-->
    <!--合作客户结构-->
    <div class="chart-layer" style="width:100%;">
        <div id="myCustomerPie" style="width:100%;height:400px;"></div>
    </div>
    <!--合作客户结构-->
    <div class="user-logout">
        <span class="username">{{userinfo.fullname}}</span>
        <span class="separater">|</span>
        <a href="javascript:void(0)" ng-click="logout()">退出</a>
    </div>
</div>
